﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CycleStateSwitch : MonoBehaviour
{
    public List<bool> stateList = new List<bool>();
    public int cycleLength;
    public int curIndex;
    public bool curState;
    // Start is called before the first frame update
    void Start()
    {
        GetCurState();
    }

    public void AddCount1()
    {
        curIndex++;
        if (curIndex >= cycleLength)
            curIndex = 0;
        GetCurState();
    }

    public void SubCount1()
    {

    }

    public void GetCurState()
    {
        curState = stateList[curIndex];
    }
}
